package com.seculab.member.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seculab.common.dao.DefaultDAO;
import com.seculab.member.domain.Member;

@Service
public class MemberServiceImpl implements MemberService {

	@Autowired
	private DefaultDAO defaultDAO;
	
	@Override
	public void insertMember(Member member) throws Exception {
		defaultDAO.insert("Member.insertMember", member);
	}

	@Override
	public Member getMember(Member member) throws Exception {
		return (Member)defaultDAO.select("Member.getMember", member);
	}

}
